package com.java;

import java.util.Random;
import java.util.Scanner;

public class Test10 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Random random = new Random();
        int num = random.nextInt(100)+1;   // 1~100
        int count = 0;
        do {
            count = scanner.nextInt();
            if(count > num) {
                System.out.println("打了");
            } else if (count <num) {
                System.out.println("小了");
            } else {
                System.out.println("对了");
            }
        }while(count != 0);
        System.out.println();
    }
}
